package com.micro.glszh.stat.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.micro.glszh.stat.dao.BizMatterDetailMapper;
import com.micro.glszh.stat.domain.BizMatterDetail;
import com.micro.glszh.stat.service.BizMatterDetailService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * BizMatterDetailServiceImpl
 *
 * @Author gaopengfei
 * @create 2024/10/21 15:53
 */
@RequiredArgsConstructor
@Service
public class BizMatterDetailServiceImpl extends ServiceImpl<BizMatterDetailMapper, BizMatterDetail> implements BizMatterDetailService{

    private final BizMatterDetailMapper bizMatterDetailMapper;

    @Override
    public List<BizMatterDetail> selectMatterDetailList(Long recordId) {
        QueryWrapper<BizMatterDetail> wrapper = new QueryWrapper<>();
        wrapper.eq("record_id", recordId);
        return bizMatterDetailMapper.selectList(wrapper);
    }
}
